package com.eightbears.beboy.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eightbears.beboy.R;
import com.eightbears.beboy.base.util.CommonUtils;
import com.eightbears.beboy.entity.ChildrenEntity;
import com.eightbears.beboy.entity.ShopCommentEntity;

/**
 * Created by Bao on 2016/12/7.
 */

public class LevelClientAdapter extends BaseQuickAdapter<ChildrenEntity.DataBean.ListBean, BaseViewHolder> {


    public LevelClientAdapter() {
        super(R.layout.item_level_client, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, ChildrenEntity.DataBean.ListBean listBean) {

        CommonUtils.loadImageView(mContext, listBean.getChildren().getCover(), R.mipmap.default_head,
                (ImageView) baseViewHolder.getView(R.id.iv_user_head));
        baseViewHolder.setText(R.id.tv_name, listBean.getChildren().getNickname())
                .addOnClickListener(R.id.iv_user_head);
    }

}
